package com.jsp.tag1;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;

public class HelloTag1 extends TagSupport
{
	@Override
	public int doStartTag() throws JspException
	{
		try 
		{
			this.pageContext.getOut().print("nice to meet you: ");
		}
		catch(Exception e)
		{
			throw new JspTagException(e.getMessage());
		}
		
		return EVAL_BODY_INCLUDE;
	}

	@Override
	public int doEndTag() throws JspException
	{
		
		try 
		{
			this.pageContext.getOut().print("Li4");
		}
		catch(Exception e)
		{
			throw new JspTagException(e.getMessage());
		}
		
		
		return SKIP_PAGE;
	}
	
	
}
